home *** CD-ROM | disk | FTP | other *** search
- Path: kjpoglit.!kjpoglit
- From: kjpoglit@kjpoglit. (Karl Poglitsch)
- Newsgroups: comp.lang.c++
- Subject: Re:GetSystemMetrics
- Date: 27 Jan 1996 05:14:51 GMT
- Organization: i-conn
- Distribution: world
- Message-ID: <4ecccb$rpb@news.iconn.net>
- Reply-To: kjpoglit@kjpoglit.
- NNTP-Posting-Host: hd-ts01-05.iconn.net
-
- Hello...
-
- I am looking at a book "Programming in Windows 3.1 Third Edition" and that's
- exactly how they do it. SM_CYSCREEN and SM_CXSCREEN give you the width and
- heigth of the screen.
-
- You've got it...
-
- I have a question for you now... Any way to stop a window from being sized too
- small? I tried to intercept the WM_SIZE command, however I couldn't get
- anything working there... I know it can be done, but I can't figure out how to
- do it. I'm also looking into animated icons, however I can't get it to change
- by itself. I force it to repaint, but that doesn't work. It does work if I
- actually move the icon though. Any ideas on this?
-
- >seems to indicate i should use GetsystemMetrics(SM_SXSCREEN) for the
- >width and GetSystemMetrics(SM_CYSCREEN) for the height of the window.
- >But it looks like these functions always return the values as if the
- >window was maximized. I have solved my particular problem by
-
- Actually, the size of the screen, not the size of any window...
-
- >'intercepting' the WM_SIZE message from windows which gives me the size
- >of the resized window in lParam but i am wondering if i am doing the
- >right thing here.
- >As anyone had any problems with this also?
- >
- >Theo.
-
-
-